package gdut.edu.demo01;


/**
 * @Description MyArray测试
 * @Author JiaFu
 * @Date 2022/7/6 13:31
 */
public class TestMyArray {
    public static void main(String[] args) {
        MyArray myArray1 = new MyArray();
        System.out.println("myArray1.size() = " + myArray1.size());
        myArray1.add(1);
        myArray1.add(2);
        myArray1.add(3);
        myArray1.add(4);
        myArray1.show();
        myArray1.remove();
        myArray1.show();
        myArray1.add(0, 11);
        myArray1.show();
        myArray1.add(2, 22);
        myArray1.show();
        myArray1.add(5, 55);
        myArray1.show();
        myArray1.remove(5);
        myArray1.show();
        System.out.println(myArray1.get(3));
        myArray1.update(0, 100);
        myArray1.show();
    }
}
